export function isLogined() {
  if (localStorage.getItem("token")) {
    
    return true;
  }
  return false;
}

/**
 * 设置token
 * @param {*} val
 */
export function setToken(val) {
  localStorage.setItem("token", val);
}
//
export function getToken() {
  return localStorage.getItem("token");
}
export function removeToken() {
  localStorage.removeItem("token");
}

export const serverUrl = "http://localhost:1337";
